process.env.NODE_ENV = 'development'
const webpack = require('webpack')
const merge = require('webpack-merge')
const path = require('path')
const commonConfig = require('./webpack.common.js')
/**
 * @type { import('webpack').Configuration }
 */
module.exports = merge(commonConfig, {
    mode: 'development',
    devtool: 'cheap-module-source-map',
    devServer: {
        contentBase: [path.join(__dirname, "dist"), path.join(__dirname, "public")],
        compress: true,
        port: 8081,
        publicPath: '/',
        hot: true,
        historyApiFallback: true,
        proxy: {
        }
    },
    plugins: [
        new webpack.HotModuleReplacementPlugin()
    ]
})